<!DOCTYPE html>
<html>
<head>
    <base href="../"/>
    <meta charset="UTF-8">
    <title>Basic DataGrid - jQuery EasyUI Demo</title>
    <link rel="stylesheet" type="text/css" href="component/easyui/themes/default/easyui.css">
    <link rel="stylesheet" type="text/css" href="component/easyui/themes/icon.css">
    <link rel="stylesheet" type="text/css" href="css/app.css">
    <script type="text/javascript" src="component/easyui/jquery.min.js"></script>
    <script type="text/javascript" src="component/easyui/jquery.easyui.min.js"></script>
    <script type="text/javascript" src="component/easyui/jquery.edatagrid.js"></script>
    <script type="text/javascript" src="component/easyui/easyui-lang-zh_CN.js"></script>
    <script type="text/javascript" src="js/config.js"></script>
</head>
<body class="easyui-layout" fit="true">
<form id="add_rule_code_form" method="post" style="padding: 20px;">
    <div style="margin-bottom:20px">
        <input class="easyui-textbox" name="groupName"
               data-options="label:'分组',labelPosition:'top',required:true">
    </div>
    <div style="margin-bottom:20px">
        <input class="easyui-textbox" name="name"
               data-options="label:'名称',labelPosition:'top',required:true">
    </div>
    <div style="margin-bottom:20px">
        <input class="easyui-textbox" name="code" style="width:100%;height:400px;"
               data-options="label:'groovy代码',labelPosition:'top',multiline:true,required:true">
    </div>
</form>
<script>
    $(document).ready(function () {
        $('#add_rule_code_form').form({
            url: baseUrl + '/caculatecode/save.do',
            onSubmit: function () {

            },
            success: function (data) {
                $('#setting_rule_code_datagrid').datagrid('reload');
                $.messager.show({
                    title:'提示',
                    msg:'操作成功',
                    timeout:1000,
                    showType:'slide'
                });
            }
        });
    });
</script>
</body>
</html>